package com.mach.platform.domain.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Administrator
 * @Description:  组织架构实体
 * @Package: com.mach.platform.com.mach.platform.domain
 * @time 2018/4/19 0019 14:07
 */
@ApiModel(value = "组织架构实体")
@Data
@Entity(name = "organization")
@Table(name = "organization")
public class Organization implements Serializable {

	private static final long serialVersionUID = 8084092436220653774L;

	@ApiModelProperty(value = "id")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long   id;
	/**
	 * 父id
	 */
	@ApiModelProperty(value = "父id")
	private Long   pid;
	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
	private String name;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remark;


}
